﻿using System.Collections.Generic;
using Dost.Khcn.Data.EntityModel;
using Dost.Khcn.Data.Implements;
using Dost.Khcn.Data.Interfaces;

namespace Dost.Khcn.Biz
{
    public class ChuyenGiaFileBiz
    {
        private IFileDao _fileDao;
        private IFileDao FileManager
        {
            get
            {
                return _fileDao ?? (_fileDao = new FileDao());
            }
        }

        public List<ChuyenGiaFileView> GetFiles(int chuyenGiaId)
        {
            return FileManager.GetFiles(chuyenGiaId);
        }

        public ChuyenGiaFile GetFileById(int id)
        {
            return FileManager.GetFileById(id);
        }

        public void Create(ChuyenGiaFile chuyenGiaFile)
        {
            FileManager.Create(chuyenGiaFile);
        }

        public void Delete(int id)
        {
            FileManager.Delete(id);
        }
    }
}
